<html>
	<head>
		<title>Canvas Test</title>

    <style type="text/css">
		canvas { border: 2px solid black; }
    </style>

	</head>

	<!--Fragment shader-->
	<script id="fshader" type="x-shader/x-fragment">
		precision mediump float;

		void main(void) 
		{
			gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);
		}
	</script>

	
	<!--Vertex shader-->
	<script id="vshader" type="x-shader/x-vertex">
		attribute vec3 a_vtx_position;
		attribute vec3 a_vtx_normal;
		attribute vec3 a_vtx_color;
		attribute vec3 a_vtx_texcoord;

		uniform mat4 u_modelview_mat;
		uniform mat4 u_projection_mat;

		void main(void) 
		{
			gl_Position = u_projection_mat * u_modelview_mat * vec4(a_vtx_position, 1.0);
		}
	</script>

	<script type="text/javascript" src="glMatrix-0.9.5.min.js"></script>
	<script type="text/javascript" src="test.js"></script>
 
	<body>
		<div style="color:#00FF00" align="center">
			<canvas id="tutorial" width="500" height="500"></canvas>
			<script type="text/javascript">main();</script>
		</div>
	</body>

</html>


